Page({
    data: {
        navBarConfig: {
            title: '导航样式',
            show: true,
            back: true,
            home: true,
        },
    },
    onLoad: function (options) {

    },
    changeSlot: function (e) {
        this.setData({
            "navBarConfig.slot": e.detail.value,
        })
    },
    changeHome: function (e) {
        this.setData({
            "navBarConfig.home": e.detail.value
        })
    },
    changeBack: function (e) {
        this.setData({
            "navBarConfig.back": e.detail.value
        })
    },
    changeNav: function (e) {
        this.setData({
            "navBarConfig.show": e.detail.value,
        })
    },
    changePlace: function (e) {
        this.setData({
            "navBarConfig.placeholder": e.detail.value
        })
    },
    changeLeft: function (e) {
        this.setData({
            "navBarConfig.titleLeft": e.detail.value
        })
    }
});